﻿<%@ Page Language="C#" MasterPageFile="~/LTR/MlyLtrMaster.Master" AutoEventWireup="true" CodeBehind="UserInfo.aspx.cs" Inherits="MLY.LTR.UserInfo"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="titleHolder" runat="server">
    <style type="text/css">
        #data_transfer_inside td
        {
            padding:5px 10px 5px 10px;
            vertical-align:middle;            
        }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="data_transfer_container" class="SC_FloatRight" >
    <div id="data_transfer_inside">
    <table style="width:100%;">
    <tr>
        <td class="SC_AntiAlign" style="width:30%;">
            <img alt="userdetails" src="../Images/MenuTumbs/UserDetailsTumbnail.png" />
        </td>
        <td class="SC_Align" style="width:30%;">
            <span class="SC_BigText"><asp:Literal ID="HelloText" runat="server"></asp:Literal></span>
            <br /><br />
            <span class="SC_SmallText"><asp:Literal ID="CanChangeTitle" runat="server" Text="you can change your details here"></asp:Literal></span>
            <br />
            <asp:Label runat="server" ID="errLbl" ForeColor="Red" Font-Bold="true"></asp:Label> 
            <asp:Label runat="server" ID="succLabel" ForeColor="Green" Font-Bold="true" Text='<%$Dict:UserInfo.UpdateSuccessfull%>'/>
                                
        </td>
        <td style="width:10%;"></td>
        <td style="width:30%;"></td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label3" runat="server" Text='<%$Dict:UserInfo.Username%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtUserName" runat="server" CssClass="SC_Textbox"></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label6" runat="server" Text='<%$Dict:UserInfo.Organization%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:DropDownList ID="DropDownOrganization" runat="server" CssClass="SC_ddl"
                DataSourceID="SqlDataSource1" DataTextField="OrganizationName" 
                DataValueField="OrganizationId" Enabled="false">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>" 
                SelectCommand="SELECT [OrganizationId], [OrganizationName] FROM [TableOrganizations]">
            </asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label4" runat="server" Text='<%$Dict:UserInfo.FullName%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtFullName" runat="server" CssClass="SC_Textbox"/>
        </td>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label7" runat="server" Text='<%$Dict:UserInfo.Role%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:DropDownList ID="DropDownRole" runat="server" 
                DataSourceID="SqlDataSource2" DataTextField="RollDescription" 
                DataValueField="RollId" CssClass="SC_ddl" Enabled="false">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>" 
                SelectCommand="SELECT [RollId], [RollDescription] FROM [LookupRolls]">
            </asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label5" runat="server" Text='<%$Dict:UserInfo.Password%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtPassword"  runat="server" CssClass="SC_Textbox"></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
            
        </td>
        <td class="SC_Align">
            <asp:Button ID="SaveButton" runat="server" OnClick="btnSave_Click" CssClass="SC_Button" 
             Text='<%$Dict:General.Save %>' /> 
            <asp:Button ID="CloseButton" runat="server" Text='<%$Dict:UserInfo.Close%>' 
             OnClick="btnClose_Click" CssClass="SC_BottonGrey" />
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label8" runat="server" Text='<%$Dict:UserInfo.Email%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtPhone" runat="server" CssClass="SC_Textbox" ></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
        
        </td>
        <td class="SC_Align">
        
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label10" runat="server" Text='<%$Dict:UserInfo.Address%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtAddress" runat="server" CssClass="SC_Textbox"></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
        
        </td>
        <td class="SC_Align">
        
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="NumRowsInGridviewTitleLabel" runat="server"  Text="<%$Dict:UserInfo.GrodRows%>"></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="NumRowsInGridviewTextBox" runat="server" CssClass="SC_Textbox"></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
        
        </td>
        <td class="SC_Align">
        
        </td>
    </tr>
    <tr>
        <td class="SC_AntiAlign">
            <asp:Label ID="Label1" runat="server" Text='<%$Dict:UserInfo.Email%>'></asp:Label>
        </td>
        <td class="SC_Align">
            <asp:TextBox ID="txtEmail" runat="server" CssClass="SC_Textbox" ></asp:TextBox>
        </td>
        <td class="SC_AntiAlign">
        
        </td>
        <td class="SC_Align">
        
        </td>
    </tr>
    </table>
    

                              
    </div>
    </div>
</asp:Content>
